package com.dongdongshop.service;

import com.dongdongshop.page.PageBean;
import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbUser;

public interface AddressService {
    //查询全部,分页
    PageBean getAll(Integer pageNum,Integer pageSize);

    //增加
    int insertAddress(TbAddress address, TbUser user);

    //回显
    TbAddress getAddressById(Long id);

    //更新
    int updateAddress(TbAddress address);

    //删除
    int delete(Long id);

    //批量删除
    int deleteCheck(Long[] ids);

}
